package com.ftg.learn.chapter17;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * springjava配置类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/3/27 下午4:20
 */
@Configuration
public class MyConfiguration {

    @Bean("tttt")
    public Tiger t1(){
        Tiger t1 = new Tiger();
        t1.setName("张四");
        return t1;
    }

    @Bean
    public Tiger t2(){
        return new Tiger();
    }

}
